<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>PHP 手册</title>
    <link
      media="all"
      rel="stylesheet"
      type="text/css"
      href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css"
    />
    <link
      media="all"
      rel="stylesheet"
      type="text/css"
      href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css"
    />
  </head>
  <body class="docs">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner clearfix">
        <ul class="nav" style="width: 100%">
          <li style="float: right"><a href="copyright.html">版权信息 »</a></li>
        </ul>
      </div>
    </div>
    <div id="breadcrumbs" class="clearfix">
      <ul class="breadcrumbs-container">
        <li><a href="index.html">PHP Manual</a></li>

        <li>PHP 手册</li>
      </ul>
    </div>
    <div id="layout">
      <div id="layout-content">
        <div id="index" class="set">
          <h1 class="title">PHP 手册</h1>

          <div class="info">
            <div class="authorgroup" id="authors">
              <div class="author vcard">
                <strong class="by">作者</strong>:<br />
                <span class="personname fn">
                  <span class="firstname given-name">Mehdi</span>
                  <span class="surname family-name">Achour</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Friedhelm</span>
                  <span class="surname family-name">Betz</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Antony</span>
                  <span class="surname family-name">Dovgal</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Nuno</span>
                  <span class="surname family-name">Lopes</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Hannes</span>
                  <span class="surname family-name">Magnusson</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Georg</span>
                  <span class="surname family-name">Richter</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Damien</span>
                  <span class="surname family-name">Seguy</span>
                </span>
              </div>

              <div class="author vcard">
                <span class="personname fn">
                  <span class="firstname given-name">Jakub</span>
                  <span class="surname family-name">Vrana</span>
                </span>
              </div>

              <div class="othercredit">
                <span class="personname fn">
                  <span class="othername">
                    <a href="preface.html#contributors" class="link"
                      >其他贡献者</a
                    >
                  </span>
                </span>
              </div>
            </div>
            <div class="pubdate">2022-12-07</div>

            <div class="authorgroup" id="editors">
              <div class="editor vcard">
                <strong class="editedby">编辑</strong>:
                <span class="personname fn">
                  <span class="firstname given-name">Peter</span>
                  <span class="surname family-name">Cowburn</span>
                </span>
              </div>
            </div>

            <div class="authorgroup" id="translators">
              <div class="othercredit">
                <span class="personname fn">中文翻译人员：</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">戴劼</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">乔楚</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">袁玉强</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">王远之</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">段小强</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">陈伯乐</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">周梦康</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">肖理达</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">肖盛文</span>
              </div>
              <div class="othercredit">
                <span class="personname fn">褚兆玮</span>
              </div>
            </div>

            <div class="copyright">
              &copy;
              <span class="year">1997-2022</span>
              <span class="holder">PHP 文档组</span>
            </div>
          </div>

          <ul class="chunklist chunklist_set">
            <li><a href="copyright.html">版权信息</a></li>
            <li>
              <a href="manual.html">PHP 手册</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="preface.html">序言</a></li>
              </ul>
            </li>
            <li>
              <a href="getting-started.html">入门指引</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="introduction.html">简介</a></li>
                <li><a href="tutorial.html">简明教程</a></li>
              </ul>
            </li>
            <li>
              <a href="install.html">安装与配置</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="install.general.html">安装前需要考虑的事项</a></li>
                <li><a href="install.unix.html">Unix 系统下的安装</a></li>
                <li><a href="install.macosx.html">macOS 系统下的安装</a></li>
                <li><a href="install.windows.html">Windows 系统下的安装</a></li>
                <li><a href="install.cloud.html">云计算平台上的安装</a></li>
                <li>
                  <a href="install.fpm.html">FastCGI 进程管理器（FPM）</a>
                </li>
                <li><a href="install.pecl.html">PECL 扩展库安装</a></li>
                <li><a href="install.problems.html">还有问题？</a></li>
                <li><a href="configuration.html">运行时配置</a></li>
              </ul>
            </li>
            <li>
              <a href="langref.html">语言参考</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="language.basic-syntax.html">基本语法</a></li>
                <li><a href="language.types.html">类型</a></li>
                <li><a href="language.variables.html">变量</a></li>
                <li><a href="language.constants.html">常量</a></li>
                <li><a href="language.expressions.html">表达式</a></li>
                <li><a href="language.operators.html">运算符</a></li>
                <li><a href="language.control-structures.html">流程控制</a></li>
                <li><a href="language.functions.html">函数</a></li>
                <li><a href="language.oop5.html">类与对象</a></li>
                <li><a href="language.namespaces.html">命名空间</a></li>
                <li><a href="language.enumerations.html">枚举</a></li>
                <li><a href="language.errors.html">错误</a></li>
                <li><a href="language.exceptions.html">异常</a></li>
                <li><a href="language.fibers.html">纤程</a></li>
                <li><a href="language.generators.html">生成器</a></li>
                <li><a href="language.attributes.html">注解</a></li>
                <li><a href="language.references.html">引用的解释</a></li>
                <li><a href="reserved.variables.html">预定义变量</a></li>
                <li><a href="reserved.exceptions.html">预定义异常</a></li>
                <li><a href="reserved.interfaces.html">预定义接口和类</a></li>
                <li><a href="reserved.attributes.html">预定义注解</a></li>
                <li><a href="context.html">上下文（Context）选项和参数</a></li>
                <li><a href="wrappers.html">支持的协议和封装协议</a></li>
              </ul>
            </li>
            <li>
              <a href="security.html">安全</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="security.intro.html">简介</a></li>
                <li><a href="security.general.html">总则</a></li>
                <li><a href="security.cgi-bin.html">以 CGI 模式安装时</a></li>
                <li><a href="security.apache.html">以 Apache 模块安装时</a></li>
                <li>
                  <a href="security.sessions.html">会话（Session）安全</a>
                </li>
                <li><a href="security.filesystem.html">文件系统安全</a></li>
                <li><a href="security.database.html">数据库安全</a></li>
                <li><a href="security.errors.html">错误报告</a></li>
                <li><a href="security.variables.html">用户提交的数据</a></li>
                <li><a href="security.hiding.html">隐藏 PHP</a></li>
                <li><a href="security.current.html">保持更新</a></li>
              </ul>
            </li>
            <li>
              <a href="features.html">特点</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li>
                  <a href="features.http-auth.html">用 PHP 进行 HTTP 认证</a>
                </li>
                <li><a href="features.cookies.html">Cookie</a></li>
                <li><a href="features.sessions.html">会话</a></li>
                <li><a href="features.xforms.html">处理 XForms</a></li>
                <li><a href="features.file-upload.html">文件上传处理</a></li>
                <li><a href="features.remote-files.html">使用远程文件</a></li>
                <li>
                  <a href="features.connection-handling.html">连接处理</a>
                </li>
                <li>
                  <a href="features.persistent-connections.html"
                    >持久数据库连接</a
                  >
                </li>
                <li>
                  <a href="features.commandline.html">PHP 的命令行模式</a>
                </li>
                <li><a href="features.gc.html">垃圾回收机制</a></li>
                <li><a href="features.dtrace.html">DTrace 动态跟踪</a></li>
              </ul>
            </li>
            <li>
              <a href="funcref.html">函数参考</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="refs.basic.php.html">影响 PHP 行为的扩展</a></li>
                <li><a href="refs.utilspec.audio.html">音频格式操作</a></li>
                <li><a href="refs.remote.auth.html">身份认证服务</a></li>
                <li>
                  <a href="refs.utilspec.cmdline.html">针对命令行的扩展</a>
                </li>
                <li><a href="refs.compression.html">压缩与归档扩展</a></li>
                <li><a href="refs.crypto.html">加密扩展</a></li>
                <li><a href="refs.database.html">数据库扩展</a></li>
                <li><a href="refs.calendar.html">日期与时间相关扩展</a></li>
                <li>
                  <a href="refs.fileprocess.file.html">文件系统相关扩展</a>
                </li>
                <li>
                  <a href="refs.international.html">国际化与字符编码支持</a>
                </li>
                <li><a href="refs.utilspec.image.html">图像生成和处理</a></li>
                <li><a href="refs.remote.mail.html">邮件相关扩展</a></li>
                <li><a href="refs.math.html">数学扩展</a></li>
                <li>
                  <a href="refs.utilspec.nontext.html"
                    >非文本内容的 MIME 输出</a
                  >
                </li>
                <li>
                  <a href="refs.fileprocess.process.html">进程控制扩展</a>
                </li>
                <li><a href="refs.basic.other.html">其它基本扩展</a></li>
                <li><a href="refs.remote.other.html">其它服务</a></li>
                <li><a href="refs.search.html">搜索引擎扩展</a></li>
                <li>
                  <a href="refs.utilspec.server.html">针对服务器的扩展</a>
                </li>
                <li><a href="refs.basic.session.html">Session 扩展</a></li>
                <li><a href="refs.basic.text.html">文本处理</a></li>
                <li>
                  <a href="refs.basic.vartype.html">变量与类型相关扩展</a>
                </li>
                <li><a href="refs.webservice.html">Web 服务</a></li>
                <li>
                  <a href="refs.utilspec.windows.html">Windows 专用扩展</a>
                </li>
                <li><a href="refs.xml.html">XML 操作</a></li>
                <li><a href="refs.ui.html">图形用户界面(GUI) 扩展</a></li>
              </ul>
            </li>
            <li>
              <a href="faq.html">FAQ</a> — FAQ：常见问题
              <ul class="chunklist chunklist_set chunklist_children">
                <li>
                  <a href="faq.general.html">General Information</a> — 一般信息
                </li>
                <li><a href="faq.mailinglist.html">邮件列表</a></li>
                <li>
                  <a href="faq.obtaining.html">Obtaining PHP</a> — 获取 PHP
                </li>
                <li>
                  <a href="faq.databases.html">Database issues</a> — 数据库问题
                </li>
                <li><a href="faq.installation.html">安装</a> — 安装常见问题</li>
                <li><a href="faq.build.html">编译问题</a></li>
                <li><a href="faq.using.html">使用 PHP</a></li>
                <li>
                  <a href="faq.passwords.html">Password Hashing</a> —
                  密码散列安全
                </li>
                <li><a href="faq.html.html">PHP and HTML</a> — PHP 和 HTML</li>
                <li><a href="faq.com.html">PHP and COM</a> — PHP 和 COM</li>
                <li><a href="faq.misc.html">其他问题</a></li>
              </ul>
            </li>
            <li>
              <a href="appendices.html">附录</a>
              <ul class="chunklist chunklist_set chunklist_children">
                <li><a href="history.html">PHP 及其相关工程的历史</a></li>
                <li>
                  <a href="migration82.html">从 PHP 8.1.x 移植到 PHP 8.2.x</a>
                </li>
                <li>
                  <a href="migration81.html">从 PHP 8.0.x 移植到 PHP 8.1.x</a>
                </li>
                <li>
                  <a href="migration80.html">从 PHP 7.4.x 移植到 PHP 8.0.x</a>
                </li>
                <li>
                  <a href="migration74.html">从 PHP 7.3.x 移植到 PHP 7.4.x</a>
                </li>
                <li>
                  <a href="migration73.html">从 PHP 7.2.x 移植到 PHP 7.3.x</a>
                </li>
                <li>
                  <a href="migration72.html">从 PHP 7.1.x 移植到 PHP 7.2.x</a>
                </li>
                <li>
                  <a href="migration71.html">从 PHP 7.0.x 移植到 PHP 7.1.x</a>
                </li>
                <li>
                  <a href="migration70.html">从 PHP 5.6.x 移植到 PHP 7.0.x</a>
                </li>
                <li>
                  <a href="migration56.html">从 PHP 5.5.x 移植到 PHP 5.6.x</a>
                </li>
                <li><a href="debugger.html">PHP 的调试</a></li>
                <li><a href="configure.html">配置选项</a></li>
                <li><a href="ini.html">php.ini 配置</a></li>
                <li><a href="extensions.html">扩展库列表／归类</a></li>
                <li><a href="aliases.html">函数别名列表</a></li>
                <li><a href="reserved.html">保留字列表</a></li>
                <li><a href="resource.html">资源类型列表</a></li>
                <li><a href="filters.html">可用过滤器列表</a></li>
                <li><a href="transports.html">所支持的套接字传输器列表</a></li>
                <li><a href="types.comparisons.html">PHP 类型比较表</a></li>
                <li><a href="tokens.html">解析器记号（token）列表</a></li>
                <li><a href="userlandnaming.html">用户空间命名指南</a></li>
                <li><a href="about.html">关于本手册</a></li>
                <li>
                  <a href="cc.license.html">Creative Commons Attribution 3.0</a>
                </li>
                <li><a href="indexes.html">索引</a></li>
                <li><a href="doc.changelog.html">更新日志</a></li>
              </ul>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </body>
</html>
